Skip to main content

Payment Request

This endpoint posts a single payment request to a loan account. Authorization is required.

HTTP REQUEST

Development

  • POST: https://dev.vendorintegration.growersedge.com/PaymentRequest

Production

  • POST: https://vendorintegration.growersedge.com/PaymentRequest

Responses

CodeDescription
204No Content
400Bad Request
401Unauthorized
500Internal Server Error
502Bad Gateway

Post Body

Property NameTypeDescription
loanNumbernumberThe loan number to apply the payment to
requestorstringThe id of the requestor
totalAmountPaidnumberThe amount paid in dollars

Example of Post Body

{
"LoanNumber": "1234",
"Requestor": "John Doe",
"TotalAmountPaid": 50
}

Examples

from azure.identity import CertificateCredential
import requests

TENANT_ID = '***'
CLIENT_ID = '***'
CLIENT_SECRET = '***'
CLIENT_SCOPE = '***'
POST_URL = 'https://vendorintegration.growersedge.com/PaymentRequest'

def postDraw( token : str) :
payload = {
"LoanNumber": "1234",
"Requestor": "John Doe",
"TotalAmountPaid": 50
}

paymentRequestResponse = requests.post(
POST_URL,
headers = { 'Authorization' : f'Bearer {token}'},
json= payload
)

if( paymentRequestResponse.status_code == 204 ):
return
else:
raise( Exception( 'API Call failed.') )



def main():
credential = ClientSecretCredential( TENANT_ID, CLIENT_ID, CLIENT_SECRET )
access_token = credential.get_token( CLIENT_SCOPE )

print (postDraw(access_token.token))


if __name__ == '__main__':
main()
curl --request POST \
--url https://vendorintegration.growersedge.com/PaymentRequest \
--header 'Authorization: Bearer <INSERT YOUR TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"LoanNumber": "1234",
"Requestor": "John Doe",
"TotalAmountPaid": 50
}'